package Thread;

class Point {

    public static Point makePointByXY(double x, double y) {
        Point p = new Point();
        p.setX(x);
        p.setY(y);
        return p;
    }


    public static Point makePointByRA(double r, double a) {
        Point p = new Point();
        p.setR(r);
        p.setA(a);
        return p;
    }

    double y;
    double x;


    private void setA(double a) {
    }

    private void setR(double r) {
    }

    private void setY(double y) {

    }

    private void setX(double x) {

    }

}
public class ThreadDemo26 {
    static double x;
    static double y;
    static double r;
    static double a;

    public static void main(String[] args) {

        Point point1 = Point.makePointByXY(x,y);

        Point point2 = Point.makePointByRA(r,a);
    }

}
